package cn.stylefeng.guns.czlm.mapper;

import cn.stylefeng.guns.czlm.entity.TbCoupon;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface TbCouponMapper extends BaseMapper<TbCoupon> {

    //查询优惠卷
    Page<Map<String, Object>> selectCoupons(@Param("page") Page page,@Param("name")String name,@Param("active") Integer active);

    //添加优惠券
    void insertTbCoupon(TbCoupon coupon);
}
